package com.osfw.dbadminer.domain.database;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TableColDef {
    private String database;
    private String tableName;
    private String columnName;
    private Integer columnType;
    private String columnTypeName;
    private Integer columnLength;
    private Integer smallNumber;
    private Boolean allowNull;
    private Boolean primaryKey;
    private Long maxCharsCount;
    private Boolean isNumberColumn;

    public TableColDef() {
    }

    public TableColDef(String tableName, String columnName, String columnTypeName, Integer columnLength, Integer smallNumber, Boolean allowNull, Boolean primaryKey) {
        this.tableName = tableName;
        this.columnName = columnName;
        this.columnTypeName = columnTypeName;
        this.columnLength = columnLength;
        this.smallNumber = smallNumber;
        this.allowNull = allowNull;
        this.primaryKey = primaryKey;
    }
}
